<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>判断两个数的大小</title>
    <style>
        a{
            color: #c01900;
            text-decoration: none;
        }
    </style>
</head>
<body>
<a href="判断成绩.html">判断成绩</a>
<br/>
<br/>
<script>
    var a = parseInt(prompt("请您输入第一个数："));
    var b = parseInt(prompt("请您输入第二个数："));

    if(a>b){
        alert(a);
    }else{
        alert(b);
    }
</script>
</body>
</html>